from random import randint
n=int(input())
c=0
for i in range (n):
    x=randint (-100,100)
    y=randint (-100,100)
    print (x,y)
    if x<=5 and y<=5 and x>=-7 and y>=-8:
      c+=1
print (c)
     
     
